/*
 * @Author: DeluxePig
 * @LastEditors: DeluxePig 250293786@qq.com
 * @Date: 2024-06-17 21:34:19
 * @LastEditTime: 2024-07-04 00:24:39
 * @Description: 订单接口
 */
import request from '@/utils/request'

// 获取订单列表
export function orderListApi(params) {
  return request({
    url: '/users-api/order',
    method: 'get',
    params
  })
}
// 获取订单详情
export function oderDetailApi(params) {
  return request({
    url: '/users-api/order/find',
    method: 'get',
    params
  })
}
// 下单
export function orderTradeApi(data) {
  return request({
    url: '/users-api/order/trade',
    method: 'POST',
    data
  })
}
// 支付
export function orderPayApi(data) {
  return request({
    url: '/users-api/order/pay',
    method: 'POST',
    data
  })
}
// 取消
export function orderCloseApi(data) {
  return request({
    url: '/users-api/order/close',
    method: 'POST',
    data
  })
}
// 获取充值下单配置
export function reserveApi(params) {
  return request({
    url: '/users-api/order/reserve',
    method: 'GET',
    params
  })
}
